import request from '@/utils/request'

// 文件上传
export function uploadFile(file: File) {
  const formData = new FormData()
  formData.append('file', file)
  return request.post<string>('/upload', formData, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
